<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>我的美丽家</title>
    <script src="__INDEX__/js/mui.min.js"></script>
	<link href="__INDEX__/css/mui.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="__INDEX__/css/iconfont.css" />
	<link rel="stylesheet" href="__INDEX__/css/style.css" />
	<link rel="stylesheet" href="__INDEX__/css/mall.css" />	
</head>
<style>
</style>
<body>
	<div class="mui-content">		
		<header class="mui-bar mui-bar-nav">
	    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
	    <h1 class="mui-title">个人中心</h1>
	</header>
	<nav class="mui-bar mui-bar-tab grzx_tab">
	    <a class="mui-tab-item mui-active">
	        <span class="mui-icon fjsj"></span>
	        <span class="mui-tab-label">附近商家</span>
	    </a>
	    <a class="mui-tab-item grzxi">
	        <span class="mui-icon grzx"></span>
	        <span class="mui-tab-label">个人中心</span>
	    </a>
	    <a class="mui-tab-item">
	        <span class="mui-icon fxzq"></span>
	        <span class="mui-tab-label">分享赚钱</span>
	    </a>
	</nav>
	<div class="mui-content gulijin_content" style="background: white;">
	    <div class="gerzx_imgbox">
	    	<div class="left">
	    		<p class="name">{$info_user['user_name']}</p>
	    		<p class="id">ID:{$info_user['id']}</p>
	    	</div>
	    	<div class="right">{if $info_user['logo'] == null}
	    		<img id="touxiang" src="__INDEX__/images/member.jpg">
	    		{else /}
	    		<img id="touxiang" src="{$info_user['logo']}">
	    		{/if}</div>
	    </div>
	    <div class="mem_gljbox clearfix">
	    	<div class="mem_zhye">
	    		<p>账户余额</p>
	    		<p class="pri" id="yu">¥<em>{$info_user['balance']}</em></p>
	    	</div>
	    	<div class="mem_gljzh">
	    		<p>鼓励金</p>
	    		<p class="pri" id="jf">¥<em>{$info_user['score']}</em></p>
	    	</div>
	    </div>
	    <div><img src="__INDEX__/images/bt_wddd.jpg"></div>
	    <ul class="mui-table-view mui-grid-view mui-grid-9 wdddan">
            <li class="mui-table-view-cell mui-media daifk">
            	<a href="{:url('member/orders',['status'=>1])}">
                    <span class="mui-icon"></span>
                    <div class="mui-media-body">待付款</div>
            	</a>
            </li>
            <li class="mui-table-view-cell mui-media daixf">
            	<a href="{:url('member/orders',['status'=>4])}">
                    <span class="mui-icon"><span class="mui-badge">{$count}</span></span>
                    <div class="mui-media-body">待消费</div>
            	</a>
            </li>
            <li class="mui-table-view-cell mui-media daipj">
            	<a href="{:url('member/orders',['status'=>5])}">
                    <span class="mui-icon"></span>
                    <div class="mui-media-body">待评价</div>
            	</a>
            </li>
        </ul> 
	    <ul class="mui-table-view mui-grid-view mui-grid-9 grzxntab">
            <li class="mui-table-view-cell mui-media huiym">
            	<a href="{:url('member/card')}">
                    <span class="mui-icon"></span>
                    <div class="mui-media-body">会员码</div>
            	</a>
            </li>
            <li class="mui-table-view-cell mui-media tuigzx">
            	<a href="{:url('member/friends')}">
                    <span class="mui-icon"></span>
                    <div class="mui-media-body">推广中心</div>
            	</a>
            </li>
            <li class="mui-table-view-cell mui-media guljhb">
            	<a href="{:url('member/hongb_list')}">
                    <span class="mui-icon"></span>
                    <div class="mui-media-body">鼓励金红包</div>
            	</a>
            </li>
            <li class="mui-table-view-cell mui-media guljsm">
            	<a href="{:url('member/glj_sysm')}">
                    <span class="mui-icon"></span>
                    <div class="mui-media-body">鼓励金使用说明</div>
            	</a>
            </li>
            <li class="mui-table-view-cell mui-media xinxfk">
            	<a href="{:url('member/feedback')}">
                    <span class="mui-icon"></span>
                    <div class="mui-media-body">信息反馈</div>
            	</a>
            </li>
            {if $info_user.is_agent==0 || $info_user.qianyue_state != 1}
		    	<li class="mui-table-view-cell mui-media fuwxy">
            	<a href="{:url('member/step1')}">
                    <span class="mui-icon"></span>
                    <div class="mui-media-body">我的店铺</div>
            	</a>
           		 </li>
			    {else/}
					<li class="mui-table-view-cell mui-media fuwxy">
            	<a href="{:url('store/agent')}">
                    <span class="mui-icon"></span>
                    <div class="mui-media-body">我的店铺</div>
            	</a>
            </li>
			   
				{/if}
			
            
        </ul>
         <div class="mem_xiugmm" style="width: 50%;float: left;"><a href="{:url('member/update_pwd2')}"><img src="__INDEX__/images/btn_xgmma.jpg"></a></div>
	    <div class="mem_xiugmm" style="width: 50%;float: left;"><a href="{:url('member/update_pwd2')}"><img src="__INDEX__/images/btn_xgmma.jpg"></a></div>
	</div>
	<div id="footer"></div>
	{include file="member/bottom" /}
	

</body>
</html>
{include file="public/footer" /}
<script type="text/javascript">
	mui.init();
	var aniShow = "pop-in";
	//页面跳转
	mui('#footer-list').on('tap', 'a', function() {
		var id = this.getAttribute('href');
		var href = this.href;
		mui.openWindow({
			id: id,
			url: this.href,
			show: {
				aniShow: aniShow
			},
			waiting: {
				autoShow: false
			}
		});
	});
</script>
<script>
	//个人资料
	$(".mem_infobox").click(function(){
	 parent.location.href="{:url('member/member')}"
	});
	//佣金
	$("#yj").click(function(){
	 parent.location.href="{:url('member/yongj_record')}"
	});
	//余额
	$("#yu").click(function(){
	 parent.location.href="{:url('member/yue_record')}"
	});
	//鼓励金
	$("#jf").click(function(){
	 parent.location.href="{:url('member/glj')}"
	});
	
	$("#login_out").click(function(){
		layer.confirm('您确定要退出吗？', {
			btn: ['确定', '取消'] //按钮
		}, function() {
			$.ajax({
				url: "{:url('index/logout')}",
				data: {},
				success: function(data) {
					layer.msg("退出成功", {
						icon: 1,
						time: 1000
					}, function() {
						window.location.href = data.url;
					});
				}
			})
		})
	});
</script>

